package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StatisticsDao;
import io.wdb.modules.generator.generator.entity.StatisticsEntity;
import io.wdb.modules.generator.generator.service.StatisticsService;



@Service("statisticsService")
public class StatisticsServiceImpl implements StatisticsService {
	@Autowired
	private StatisticsDao statisticsDao;
	
	@Override
	public StatisticsEntity queryObject(String id){
		return statisticsDao.queryObject(id);
	}
	
	@Override
	public List<StatisticsEntity> queryList(Map<String, Object> map){
		return statisticsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return statisticsDao.queryTotal(map);
	}
	
	@Override
	public void save(StatisticsEntity statistics){
		statisticsDao.save(statistics);
	}
	
	@Override
	public void update(StatisticsEntity statistics){
		statisticsDao.update(statistics);
	}
	
	@Override
	public void delete(String id){
		statisticsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		statisticsDao.deleteBatch(ids);
	}
	
}
